import useUser from '@/stores/useUser'
export default {
    install(app) {
        const { user } = useUser()
        app.directive('isteacher', {
            mounted(el) {
              if(user.type !== '老师') {
                el.remove()
              }
            }
          });
          app.directive('isstudent', {
            mounted(el) {
              if(user.type !== '学生') {
                el.remove()
              }
            }
          });
          
    }
}